home *** CD-ROM | disk | FTP | other *** search
/ This Disc Bytes! / Power Computing - The Disc 2 - This Disc Bytes.ISO / mac / CodeWarrior 7 Lite for 68K / MacOS Support / Headers / Universal Headers / ColorPickerComponents.h < prev    next >
Text File  |  1995-07-06  |  4KB  |  126 lines

  1. /*
  2.      File:        ColorPickerComponents.h
  3.  
  4.      Contains:    Color Picker Component Interfaces.
  5.  
  6.      Version:    Technology:    System 7.5
  7.                  Package:    Universal Interfaces 2.1 in “MPW Latest” on ETO #18
  8.  
  9.      Copyright:    © 1984-1995 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, use the Apple Bug Reporter
  13.                  stack.  Include the file and version information (from above)
  14.                  in the problem description and send to:
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __COLORPICKERCOMPONENTS__
  21. #define __COLORPICKERCOMPONENTS__
  22.  
  23.  
  24. #ifndef __COLORPICKER__
  25. #include <ColorPicker.h>
  26. #endif
  27. /*    #include <Quickdraw.h>                                        */
  28. /*        #include <Types.h>                                        */
  29. /*            #include <ConditionalMacros.h>                        */
  30. /*        #include <MixedMode.h>                                    */
  31. /*        #include <QuickdrawText.h>                                */
  32. /*    #include <Windows.h>                                        */
  33. /*        #include <Memory.h>                                        */
  34. /*        #include <Events.h>                                        */
  35. /*            #include <OSUtils.h>                                */
  36. /*        #include <Controls.h>                                    */
  37. /*            #include <Menus.h>                                    */
  38. /*    #include <Dialogs.h>                                        */
  39. /*        #include <Errors.h>                                        */
  40. /*        #include <TextEdit.h>                                    */
  41. /*    #include <CMApplication.h>                                    */
  42. /*        #include <Files.h>                                        */
  43. /*            #include <Finder.h>                                    */
  44. /*        #include <Printing.h>                                    */
  45. /*        #include <CMICCProfile.h>                                */
  46. /*    #include <Balloons.h>                                        */
  47.  
  48. #ifndef __COMPONENTS__
  49. #include <Components.h>
  50. #endif
  51.  
  52. #ifdef __cplusplus
  53. extern "C" {
  54. #endif
  55.  
  56. #if PRAGMA_ALIGN_SUPPORTED
  57. #pragma options align=mac68k
  58. #endif
  59.  
  60. #if PRAGMA_IMPORT_SUPPORTED
  61. #pragma import on
  62. #endif
  63.  
  64.  
  65. enum {
  66.     kPickerComponentType        = 'cpkr'
  67. };
  68.  
  69. enum PickerMessages {
  70.     kInitPicker,
  71.     kTestGraphicsWorld,
  72.     kGetDialog,
  73.     kGetItemList,
  74.     kGetColor,
  75.     kSetColor,
  76.     kEvent,
  77.     kEdit,
  78.     kSetVisibility,
  79.     kDrawPicker,
  80.     kItemHit,
  81.     kSetBaseItem,
  82.     kGetProfile,
  83.     kSetProfile,
  84.     kGetPrompt,
  85.     kSetPrompt,
  86.     kGetIconData,
  87.     kGetEditMenuState,
  88.     kSetOrigin,
  89.     kExtractHelpItem
  90. };
  91.  
  92. extern pascal long InitPicker(ComponentInstance thePicker, PickerInitData *data);
  93. extern pascal DialogPtr GetDialog(ComponentInstance thePicker);
  94. extern pascal long TestGraphicsWorld(ComponentInstance thePicker, PickerInitData *data);
  95. extern pascal long GetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color);
  96. extern pascal long SetTheColor(ComponentInstance thePicker, ColorType whichColor, PMColorPtr color);
  97. extern pascal long DoEvent(ComponentInstance thePicker, EventData *data);
  98. extern pascal long DoEdit(ComponentInstance thePicker, EditData *data);
  99. extern pascal long SetVisibility(ComponentInstance thePicker, Boolean visible);
  100. extern pascal long DisplayPicker(ComponentInstance thePicker);
  101. extern pascal long ItemHit(ComponentInstance thePicker, ItemHitData *data);
  102. extern pascal long GetItemList(ComponentInstance thePicker);
  103. extern pascal long SetBaseItem(ComponentInstance thePicker, short baseItem);
  104. extern pascal CMProfileHandle GetTheProfile(ComponentInstance thePicker);
  105. extern pascal long SetTheProfile(ComponentInstance thePicker, CMProfileHandle profile);
  106. extern pascal long GetPrompt(ComponentInstance thePicker, Str255 prompt);
  107. extern pascal long SetPrompt(ComponentInstance thePicker, Str255 prompt);
  108. extern pascal long GetIconData(ComponentInstance thePicker, PickerIconData *data);
  109. extern pascal long GetEditMenuState(ComponentInstance thePicker, PickerMenuState *mState);
  110. extern pascal long SetTheOrigin(ComponentInstance thePicker, Point where);
  111. extern pascal long ExtractHelpItem(ComponentInstance thePicker, short itemNo, short whichMsg, HelpItemInfo *helpInfo);
  112.  
  113. #if PRAGMA_IMPORT_SUPPORTED
  114. #pragma import off
  115. #endif
  116.  
  117. #if PRAGMA_ALIGN_SUPPORTED
  118. #pragma options align=reset
  119. #endif
  120.  
  121. #ifdef __cplusplus
  122. }
  123. #endif
  124.  
  125. #endif /* __COLORPICKERCOMPONENTS__ */
  126.